package cn.zlp.order.service.impl;

import cn.zlp.basic.service.impl.BaseServiceImpl;
import cn.zlp.order.domain.ProductOrderDetail;
import cn.zlp.order.mapper.ProductOrderDetailMapper;
import cn.zlp.order.service.IProductOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductOrderDetailServiceImpl extends BaseServiceImpl<ProductOrderDetail> implements IProductOrderDetailService {

    @Autowired(required = false)
    private ProductOrderDetailMapper productOrderDetailMapper;

    /**
     * 根据订单号查询订单明细
     * @param id
     * @return
     */
    @Override
    public ProductOrderDetail findByOrderId(Long id) {
        return productOrderDetailMapper.findByOrderId(id);
    }
}
